#include "RecordListReader.hpp"
#include <stdexcept>

std::list<long> GetStudentList(std::filesystem::path path)
{
  std::ifstream file(path);
  if(!file.is_open())
    throw std::runtime_error("无法打开相应文件");
  std::list<long> list;
  long input;
  while(file>>input,file.good())
    list.emplace_back(input);
  return list;
}
